package com.wulis.provider.authority.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wulis.common.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 权限管理:角色表
 *
 * @author WuliBao
 * @date 2020-04-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("authority_role")
@ApiModel(value = "Role对象", description = "权限管理:角色表")
public class Role extends BaseEntity<Role> {
    
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;
    
    @ApiModelProperty(value = "角色唯一标记")
    @TableField("role_mark")
    private String roleMark;
    
    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;
    
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;
    
    @ApiModelProperty(value = "启用状态：0关闭 1启用")
    @TableField("enable")
    private Integer enable;
}
